import { ENUM_APP, NumberTransOption } from "qqlx-core";

export const MAP_ENUM_APP = new Map<ENUM_APP, NumberTransOption>();

MAP_ENUM_APP.set(ENUM_APP.NONE, { value: ENUM_APP.NONE, zh: "NONE", en: "NONE" });
MAP_ENUM_APP.set(ENUM_APP.DROPLET_BUS, { value: ENUM_APP.DROPLET_BUS, zh: "DROPLET_BUS", en: "DROPLET_BUS" });
MAP_ENUM_APP.set(ENUM_APP.DROPLET_TOUCH, { value: ENUM_APP.DROPLET_TOUCH, zh: "DROPLET_TOUCH", en: "DROPLET_TOUCH" });

MAP_ENUM_APP.set(ENUM_APP.STREAM_USER, { value: ENUM_APP.STREAM_USER, zh: "STREAM_USER", en: "STREAM_USER" });
MAP_ENUM_APP.set(ENUM_APP.STREAM_ACCESS, { value: ENUM_APP.STREAM_ACCESS, zh: "STREAM_ACCESS", en: "STREAM_ACCESS" });
MAP_ENUM_APP.set(ENUM_APP.STREAM_PAY, { value: ENUM_APP.STREAM_PAY, zh: "STREAM_PAY", en: "STREAM_PAY" });

MAP_ENUM_APP.set(ENUM_APP.POND_JOURNAL, { value: ENUM_APP.POND_JOURNAL, zh: "POND_JOURNAL", en: "POND_JOURNAL" });
MAP_ENUM_APP.set(ENUM_APP.POND_ASSET, { value: ENUM_APP.POND_ASSET, zh: "POND_ASSET", en: "POND_ASSET" });
MAP_ENUM_APP.set(ENUM_APP.POND_MEDIA, { value: ENUM_APP.POND_MEDIA, zh: "POND_MEDIA", en: "POND_MEDIA" });
MAP_ENUM_APP.set(ENUM_APP.POND_CONTACT, { value: ENUM_APP.POND_CONTACT, zh: "POND_CONTACT", en: "POND_CONTACT" });
MAP_ENUM_APP.set(ENUM_APP.POND_BOOK, { value: ENUM_APP.POND_BOOK, zh: "POND_BOOK", en: "POND_BOOK" });

MAP_ENUM_APP.set(ENUM_APP.RIVER_MARKET, { value: ENUM_APP.RIVER_MARKET, zh: "RIVER_MARKET", en: "RIVER_MARKET" });
MAP_ENUM_APP.set(ENUM_APP.RIVER_TON, { value: ENUM_APP.RIVER_TON, zh: "RIVER_TON", en: "RIVER_TON" });
MAP_ENUM_APP.set(ENUM_APP.RIVER_STOCK, { value: ENUM_APP.RIVER_STOCK, zh: "RIVER_STOCK", en: "RIVER_STOCK" });
MAP_ENUM_APP.set(ENUM_APP.RIVER_VOUCHER, { value: ENUM_APP.RIVER_VOUCHER, zh: "RIVER_VOUCHER", en: "RIVER_VOUCHER" });

MAP_ENUM_APP.set(ENUM_APP.OCEAN_GATEWAY, { value: ENUM_APP.OCEAN_GATEWAY, zh: "OCEAN_GATEWAY", en: "OCEAN_GATEWAY" });

export const getAppTrans = function (code: ENUM_APP) {
  return MAP_ENUM_APP.get(code);
};
